

#ifndef ___ENTITY_PLAYER___
#define ___ENTITY_PLAYER___

#include "EntityImp.h"
#include "EntityManager.h"

//
//	Player Entity
//
class TCOM_API  EntityP : public EntityImp
{
public:
	EntityP();

	//
	//	callback to load entity datas
	//
	virtual bool	onLoad();

	//
	//		sub entities management
	//
	virtual IEntityManager*	getEntityMgr();

	//
	//		player entity is just a container for all role entity that a player have
	//		it won't have its own combat system
	//
	virtual ICombatSys*	getCombatSys();
	virtual void		setCombatSys(ICombatSys* pCombat);

	//
	//		Entity Extension Properties
	//
	virtual	int		getProps(const short& nIdx, int d)const	;
	virtual void	setProps(const short& nIdx, int v)		;

protected:
	EntityManager	m_theSubEttMgr;
};

#endif

